import request from '@/utils/request';

//告警事件档案-总览
export function getAlarmEventFileList(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/newestAlarm/getAlarmEventFileList',
		method: 'post',
		data: data,
	});
}
//业务告警-页面上方的table1总览表
export function getBusinessAlarmList(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/realTimeAlarm/getBusinessAlarmList',
		method: 'post',
		data: data,
	});
}

//业务告警-页面下方详情表
export function getRealTimeAlarmDetailList(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/realTimeAlarm/getRealTimeAlarmDetailList',
		method: 'post',
		data: data,
	});
}

//业务告警-导出详情表
export function getRealTimeAlarmDetailListExport(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/realTimeAlarm/getRealTimeAlarmDetailListExport',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}

//告警事件档案-总览-下载
export function getAlarmEventFileListDownLoad(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/newestAlarm/getAlarmEventFileListDownLoad',
		method: 'post',
		data: JSON.stringify(data),
		responseType: 'blob',
	});
}

//告警事件档案-详情-列表接口
export function getAlarmEventFileDetailList(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/newestAlarm/getAlarmEventFileDetailList',
		method: 'post',
		data: data,
	});
}

//告警事件档案-详情-下载接口
export function getAlarmEventFileDetailListDownLoad(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/newestAlarm/getAlarmEventFileDetailListDownLoad',
		method: 'post',
		data: JSON.stringify(data),
		responseType: 'blob',
	});
}
